﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using DataModel;

namespace ApplicationServer
{
    public class TicketManager
    {
        public static K8055Data Get(HttpApplicationState applicationState)
        {

            object obj = applicationState["Ticket"];
            K8055Data k8055Data;
            if (obj == null)
            {
                k8055Data = new K8055Data();
                applicationState["Ticket"] = k8055Data;
            }
            else
            {
                k8055Data = (K8055Data)applicationState["Ticket"];
            }
            return k8055Data;
        }

        public static void Set(HttpApplicationState applicationState, K8055Data data)
        {
            applicationState["Ticket"] = data;
        }
    }
}